package org.generic.service.impl;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.generic.interfaces.entity.Role;
import org.generic.service.RoleService;
import org.generic.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * AbstractRoleService
 *
 * @author 李坤
 */
public abstract class AbstractRoleService<T extends Role, M extends BaseMapper<T>, S extends UserService> implements RoleService<T> {
    @Autowired(required = false)
    protected M baseMapper;
    @Autowired(required = false)
    protected S userService;

    @Override
    public T getRole(String id) {
        System.out.println(userService.getNotice());
        return this.baseMapper.selectById(id);
    }
}
